<?php

namespace App\Console\Commands\Tasks\Data;
use Illuminate\Console\Command;

//每1小时统计留存数据
class AccountLevelStatisticsDaily extends Command
{
    //命令名
    protected $signature = 'task:account_check_level_daily';

    //命令描述
    protected $description = '每天统计留存数据';

    // 业务处理
    public function handle()
    {
        $startTime = strtotime(date('Y-m-d'))-86400;
        $endTime = strtotime(date('Y-m-d'));
        app('repo_account_check')->crontabAccount($startTime,$endTime,true);
    }
}